<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户注册</title>
</head>
<body>
<form th:action="@{/user/register}" th:object="${user}" method="post">
    用户名：<input type="text" name="name" th:field="*{name}"/>
    密码：<input type="password" name="password" th:field="*{password}"/>
    确认密码：<input type="password" name="passwd"/>
    <p th:text="|${msg}|"></p>
    <button type="submit">注册</button>
</form>
</body>
</html>